<?php
//get current category url
$currentCategoryID = Mage::app()->getRequest()->getParam("id");
$categoryModel=Mage::getModel("catalog/category");
$currentCategoryUrl = $categoryModel->load($currentCategoryID)->getUrl();

//get all categories page url
$rootCategoryID=Mage::app()->getStore()->getRootCategoryId();
$childID=$categoryModel->load($rootCategoryID)->getChildren();
$categoryUrl=Mage::getModel("catalog/category")->load($childID)->getUrl();
?>
<!-- <div class="footer-height"></div>
<footer>
    <ul class="ul">
        <li class="
        <?php if(Mage::helper('core/url')->getCurrentUrl()==$this->getBaseUrl()) echo 'active' ; ?>"><a href="<?php echo $this->getBaseUrl() ?>" 
        ><span class="home"><img src="<?php echo $this->getSkinUrl('images/null.png')?>" /></span><P><?php echo $this->__('首页') ?></P></a></li>

        <li class="
        <?php 
        if( Mage::helper('core/url')->getCurrentUrl() == $currentCategoryUrl ) 
            echo 'active' ; 
        ?>"><a href="<?php echo $categoryUrl?>" 
        ><span class="list"><img src="<?php echo $this->getSkinUrl('images/null.png')?>" /></span><P><?php echo $this->__('分类') ?></P></a></li>   

        <li class="<?php if(Mage::helper('core/url')->getCurrentUrl()==$this->getUrl('checkout/cart')) echo 'active' ; ?>"><a href="<?php echo $this->getUrl('checkout/cart'); ?>"><span class="shopping"><img src="<?php echo $this->getSkinUrl('images/null.png')?>" /></span><P><?php echo $this->__('购物车') ?></P></a></li>

        <li class="<?php if(preg_match("/.*\/customer\/account.*/",Mage::helper('core/url')->getCurrentUrl())) echo 'active' ; ?>"><a href="<?php echo $this->getBaseUrl() ?>customer/account/"><span class="user"><img src="<?php echo $this->getSkinUrl('images/null.png')?>" /></span><P><?php echo $this->__('个人中心') ?></P></a></li>
    </ul>
</footer> -->

<script type="text/javascript">
    // jQuery(function(){
    //     var hei = jQuery('footer').height();
    //     jQuery('.footer-height').css('height',hei);
    //     jQuery('.checkout-cart-index .foot-sell').css('height','auto');
    //     jQuery('.checkout-cart-index .foot-sell').css('bottom',hei);
    // });
</script>
